{template '_header'}
<title>收货地址</title>
<link rel="stylesheet" href="../addons/ewei_shopv2/plugin/groups/template/mobile/default/images/common.css" />
<div class="wx_bar">
  <div class="wx_bar_back"><a id="listPageback" href="javascript:void(0);"></a></div>
  <div class="wx_bar_act"><a class="wx_bar_new" id="_new" style="display: none;" href="javascript:void(0);"></a>         </div>
</div>
<div class="wx_wrap">
  <div class="address_list" id="addressList" style="opacity: 1; -webkit-transform: scale(1, 1); -webkit-transform-origin: 0px 0px;">
  {if !empty($address)}
  <div>

    <div class="address">

    {loop $address $addres}

    {if $addres['status'] == 1}

        <ul style="background-color: rgb(232, 227, 227);"><a href="{php echo $this->createMobileUrl('createadd',array('op'=>'display','id'=>$addres['id'],'groupnum'=>$all['groupnum'],'g_id'=>$all['g_id']));}">

        <i class="fa fa-check-circle" style="background-position: -20px -50px; left: 15px; top: 53%; width: 25px; height: 50px; margin-top: -7px; position: absolute; content: ;color : red" id='circle1'></i>

          <li><font color="black">{$addres['detailed_address']}</font></li>

          <li><strong><font color="black">{$addres['cname']}</font></strong>&nbsp&nbsp&nbsp<font color="black">{$addres['tel']}</font></li>

          <li style="display: none;">{$addres['id']}</li>

          

          <li class="edit" ms-click="edit">编辑</li><i></i>

          </a>

          </ul>

      {else}

      <ul>

      <a href="{php echo $this->createMobileUrl('createadd',array('op'=>'display','id'=>$addres['id'],'groupnum'=>$all['groupnum'],'g_id'=>$all['g_id']));}">

        <i class="fa fa-circle-o" style="background-position: -20px -50px; left: 15px; top: 53%; width: 25px; height: 50px; margin-top: -7px; position: absolute; color : black ;content: " id='circle2'></i>

          <li><font color="black">{$addres['detailed_address']}</font></li>

          <li><strong><font color="black">{$addres['cname']}</font></strong>&nbsp&nbsp&nbsp<font color="black">{$addres['tel']}</font></li>

          <li style="display: none;">{$addres['id']}</li>

          <li class="edit" ms-click="edit">编辑</li>

      </a>

      </ul>

    {/if}

    {/loop}

    </div>

  </div>

  {/if} 

    <div class="address_list_link">

    <a class="item item_new"  href="{php echo $this->createMobileUrl('createadd');}">新增收货地址</a>

    <a class="item item_wx" id="selAddrFromWx" style="display: none;" href="javascript:void(0);">从微信选择地址</a> 

    </div>

    <div class="margin_footer"></div>

  </div>

</div>
{template '_footer'}